package com.wangshuo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName orderr
 */
@TableName(value ="orderr")
@Data
public class Orderr implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    private Integer addressid;

    /**
     * 
     */
    private Integer goodid;

    /**
     * 
     */
    private String ordernum;

    /**
     * 
     */
    private BigDecimal price;

    /**
     * 
     */
    private LocalDateTime xdtime;

    /**
     * 
     */
    private String zfdh;

    /**
     * 
     */
    private LocalDateTime zftime;

    /**
     * 
     */
    private String dqdz;

    /**
     * 
     */
    private Integer userid;
    private Integer sellid;

    /**
     * 
     */
    private String zt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Orderr other = (Orderr) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getAddressid() == null ? other.getAddressid() == null : this.getAddressid().equals(other.getAddressid()))
            && (this.getGoodid() == null ? other.getGoodid() == null : this.getGoodid().equals(other.getGoodid()))
            && (this.getOrdernum() == null ? other.getOrdernum() == null : this.getOrdernum().equals(other.getOrdernum()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
            && (this.getXdtime() == null ? other.getXdtime() == null : this.getXdtime().equals(other.getXdtime()))
            && (this.getZfdh() == null ? other.getZfdh() == null : this.getZfdh().equals(other.getZfdh()))
            && (this.getZftime() == null ? other.getZftime() == null : this.getZftime().equals(other.getZftime()))
            && (this.getDqdz() == null ? other.getDqdz() == null : this.getDqdz().equals(other.getDqdz()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getZt() == null ? other.getZt() == null : this.getZt().equals(other.getZt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAddressid() == null) ? 0 : getAddressid().hashCode());
        result = prime * result + ((getGoodid() == null) ? 0 : getGoodid().hashCode());
        result = prime * result + ((getOrdernum() == null) ? 0 : getOrdernum().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        result = prime * result + ((getXdtime() == null) ? 0 : getXdtime().hashCode());
        result = prime * result + ((getZfdh() == null) ? 0 : getZfdh().hashCode());
        result = prime * result + ((getZftime() == null) ? 0 : getZftime().hashCode());
        result = prime * result + ((getDqdz() == null) ? 0 : getDqdz().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getZt() == null) ? 0 : getZt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", addressid=").append(addressid);
        sb.append(", goodid=").append(goodid);
        sb.append(", ordernum=").append(ordernum);
        sb.append(", price=").append(price);
        sb.append(", xdtime=").append(xdtime);
        sb.append(", zfdh=").append(zfdh);
        sb.append(", zftime=").append(zftime);
        sb.append(", dqdz=").append(dqdz);
        sb.append(", userid=").append(userid);
        sb.append(", zt=").append(zt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}